<!DOCTYPE html>
<!-- BasicServlet
     Prepared by Ken Fogel
-->
<html>

    <!-- This is a basic, old style, html file that allows you to test GET & POST
         and shows you the curl command to test PUT & DELETE.
    -->
    <head>
        <link rel="stylesheet" type="text/css" href="styles/main.css">
        <title>Basic Servlet</title>
    </head>
    <body>
        <h1>Call a servlet with GET, POST, PUT, and DELETE</h1>
        <form action = "basicservlet" method = "get">
            <label>GET method</label>
            <br/>
            <button class='button'>doGet</button>
        </form>
        <br/>
        <form action = "basicservlet" method = "post">
            <label>POST method</label>
            <br />
            <button class='button'>doPost</button>
        </form>
        <br/>
        <br/>
        <span>The next two, PUT and DELETE, cannot appear in an HTML form tag 'method ='.</span>
        <br/>
        <span>You can reach them using cURL. Download it from <a href= 'https://curl.haxx.se/'>curl.haxx.se</a>.</span>
        <br/>
        <br/>
        <label>PUT method</label>
        <br/>
        <code>curl -X PUT http://localhost:8080/BasicServlet/basicservlet</code>
        <br/>
        <br/>
        <label>DELETE method</label>
        <br/>
        <code>curl -X DELETE http://localhost:8080/BasicServlet/basicservlet</code>
    </body>
</html>
